export default (state = {count:0},action) => {
    switch(action.type){
        case "ADD_COUNT":
            return {...state,count:action.count};
        case "SET_VISIBLE":
            return {...state,visible:action.visible};
        case "SET_STUDENT":
            return {...state,student:action.student};
    }
    return state;
}